package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Person;

import java.util.List;

// 继承IService，获得MyBatis-Plus的高级CRUD能力
public interface PersonService extends IService<Person> {
    List<Person> getAllPersons();
    Person getPersonById(Long id);
    boolean addPerson(Person person);
    boolean updatePerson(Long id, Person person);
    boolean deletePerson(Long id);
}